package ch.ethz.fcl.user.interaction;

import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.TextView;

public class UserActions implements OnTouchListener{
	private TextView pos;
	
	public UserActions(TextView posInfo){
		this.pos = posInfo;
	}
	@Override
	public boolean onTouch(View v, MotionEvent event) {
		String posInfo = "X: "+event.getX()+" Y: "+event.getY();
		pos.setText(posInfo);
		return true;
	}
}
